import request from './request'

export const getConfigs = () => {
  return request({
    url: '/config/info'
  })
}

export const syncPriority = (data) => {
  return request({
    headers: {
      'Content-Type': 'application/json'
    },
    url: '/config/sync/priority',
    method: 'post',
    data
  })
}

export const syncExpand = (data) => {
  return request({
    headers: {
      'Content-Type': 'application/json'
    },
    url: '/config/sync/expand',
    method: 'post',
    data
  })
}

export const syncEpisodeSort = (data) => {
  return request({
    headers: {
      'Content-Type': 'application/json'
    },
    url: '/config/sync/episodeSort',
    method: 'post',
    data
  })
}

export const syncThreadPool = (data) => {
  return request({
    headers: {
      'Content-Type': 'application/json'
    },
    url: '/config/sync/threadPool',
    method: 'post',
    data
  })
}

export const getEventQueue = () => {
  return request({
    url: '/event/queue'
  })
}
